package rensoft.android;

import rensoft.java.lang.Base;

import android.content.Context;
import android.content.Intent;

public abstract class ContextPresenter extends Base {

  private final Context context;

  public ContextPresenter(Context context) {
    this.context = context;
  }

  public Context getContext() {
    return context;
  }

  protected String getString(int id) {
    return context.getResources().getString(id);
  }

  protected void startService(Intent intent) {
    context.startService(intent);
  }
}